# !/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2025/1/7 12:31
# @Author : ZhengQL

import os
import sys


# 对全局路径添加到系统路径中
class PathHandler:
    """
    添加全局路径
    """
    sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

    # 当前路径
    dir_path = os.path.dirname(os.path.abspath(__file__))

    # 根目录文件
    root_path = os.path.dirname(dir_path)

    # 输出文件路径
    output_path = os.path.join(root_path, 'reports')

    # 日志路径
    log_path = os.path.join(root_path, 'logs')

    # # 数据路径
    # datas_path = os.path.join(dir_path, 'datas')
    # print(datas_path)

    # 配置文件路径
    config_path = os.path.join(root_path, 'config')

    # 用例路径
    cases_path = os.path.join(root_path, 'data')



if __name__ == '__main__':
    print(PathHandler.dir_path)

    print(PathHandler.output_path + r'\result')
    print(PathHandler.log_path)
    print(PathHandler.config_path)
    print(PathHandler.root_path)
